import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

//引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI); //给所有vue组件注册的elemtnui 


//引入VueRouter
import router from './router/index.js'

//注册全局组件http，原型的方式注册
import http from  '@/utils/request.js'
Vue.prototype.http = http


//引入store
// import store from '@/src/store/index.js'
// import store from '@/src/store/index'
import store from '@/store'

new Vue({
  render: h => h(App),
  // router:router
  router,
  // store:store
  store  //让所有子组件都有个 $store
}).$mount('#app')
